
#region Imports

using System;
using System.Collections.Generic;
using System.Configuration;

using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;

#endregion

namespace Justa.Service
{
    /// <summary>
    /// 
    /// </summary>
    /// 
    ///<author>Abel Perez (java.aperez@gmail.com)</author>
    ///
    public class ServiceConfigurationData  : NamedConfigurationElement
    {
        /// <summary>
        /// 
        /// </summary>
        /// 
        public ServiceConfigurationData()
        {
        }

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="name"></param>
        /// 
        public ServiceConfigurationData(string name)
            : base(name)
        {
        }

        /// <summary>
        /// 
        /// </summary>
        /// 
        [ConfigurationProperty("type", IsRequired = true)]
        public string Type
        {
            get
            {
                return (string)base["type"];
            }
            set
            {
                base["type"] = value;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// 
        [ConfigurationProperty("singletonMethod", IsRequired = true)]
        public string SingletonMethod
        {
            get
            {
                return (string)base["singletonMethod"];
            }
            set
            {
                base["singletonMethod"] = value;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// 
        [ConfigurationProperty("returnType", IsRequired = true)]
        public string ReturnType
        {
            get
            {
                return (string)base["returnType"];
            }
            set
            {
                base["returnType"] = value;
            }
        }
    }
}